<template>
  <div>我是a1</div>
  <button @click="test">zidingyi</button>
</template>

<script>
export default {
  emits: ['zidingyi'],
  props:['msg'],
  setup(props, context) {
    // console.log("a1",context.emit);
    // console.log("a1",context.slots);
    // console.log("a1",context.attrs);
    function test() {
      context.emit('zidingyi', [666,777,888]);
    }
    return { test };
  },
};
</script>

<style>
</style>